Runs the instruction list for each value specified in the range. The first input is a list with a temporary variable name and a maximum number. The second input is a list of instructions that uses the variable name included in the first input. In the following example, the instruction setbg sets the background color for each value of i, from 0 to 7.
Examples:
dotimes [i 8] [setbg :i wait 5]
The following example displays 0, 1, 2, 3, ... to 9 in the Command Center.